<template>
  <div class="about">
    <h1>This is an about page</h1>
    <h2>路由的跳转</h2>
    <el-button type="primary" @click="toHomePage">跳转到 home 页</el-button>
  </div>
</template>
<script>
export default {
  name: "ab",
  props: {
    msg: String,
  },
  watch: {},
  mounted() {},
  methods: {
    /** 跳转到home页 */
    toHomePage() {
      this.$router.push("/home");
    },
  },
};
</script>
